import { createI18n } from 'vue-i18n'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import enUs from 'element-plus/es/locale/lang/en'

import zh_cn from './lang/zh-cn'
import en_us from './lang/en-us'

const messages = {
	'zh-cn': {
		el: zhCn,
		...zh_cn
	},
	'en-us': {
		el: enUs,
		...en_us
	}
}

const i18n = createI18n({
	locale: 'zh-cn',
	fallbackLocale: 'zh-cn',
	globalInjection: true,
	messages,
})

export default i18n;